package com.ask.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;


/**
 * 提问参数
 * Created by lwl
 */
@Getter
@Setter
public class QuestionParam {
    @ApiModelProperty(value = "标题", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String title;

    @ApiModelProperty(value = "内容", required = false)
    private String content;

    @ApiModelProperty(value = "红包", required = false)
    private double money; //默认是0

    @ApiModelProperty(value = "是否匿名", required = false)
    @NotEmpty(message = "是否匿名")
    private boolean isAnonymous;

    @ApiModelProperty(value = "相关网页url", required = false)
    private String url;

    @ApiModelProperty(value = "图片url", required = false)
    private String imgUrl;
}

